import {Component} from '@angular/core';
import {IonicPage, NavController} from 'ionic-angular';
import {Tab1Root, Tab2Root, Tab3Root, Tab4Root, Tab5Root, Tab6Root} from "../pages";
import {TranslateService} from "@ngx-translate/core";

/**
 * Generated class for the TabsPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-tabs',
  templateUrl: 'tabs.html',
})
export class TabsPage {
  role: any;

  tab1Root: any = Tab1Root;
  tab2Root: any = Tab2Root;
  tab3Root: any = Tab3Root;
  tab4Root: any = Tab4Root;
  tab5Root: any = Tab5Root;
  tab6Root: any = Tab6Root;

  tab1Title = " ";
  tab2Title = " ";
  tab3Title = " ";
  tab4Title = " ";
  tab5Title = " ";
  tab6Title = " ";


  constructor(public translateService: TranslateService,public navCtrl: NavController) {
    translateService.get(['TAB1_TITLE', 'TAB2_TITLE', 'TAB3_TITLE', 'TAB4_TITLE', 'TAB5_TITLE', 'TAB6_TITLE']).subscribe(values => {
      this.tab1Title = values['TAB1_TITLE'];
      this.tab2Title = values['TAB2_TITLE'];
      this.tab3Title = values['TAB3_TITLE'];
      this.tab4Title = values['TAB4_TITLE'];
      this.tab5Title = values['TAB5_TITLE'];
      this.tab6Title = values['TAB6_TITLE'];
    });
    // this.navCtrl.setRoot(Login);
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad TabsPage');
  }



}
